<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="/static/css/webuploader.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加/修改 - 关于我们 - H-ui.admin v3.1</title>
<meta name="keywords" content="H-ui.admin v3.1,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.1，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>系统设置<span class="c-gray en">&gt;</span> 关于我们 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
	<form class="form form-horizontal" id="form-admin-add">
		<input type="hidden" class="input-text" value="{$data.id}" id="id" name="id">
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">*</span>公司名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.name}" placeholder="公司名称" id="name" name="name">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">公司logo：</label>
			<div class="formControls col-xs-8 col-sm-9">
                <div style="position:relative;" id="drop_area"></div>
                <p style="color:#ccc;font-size:12px;">建议尺寸宽高:1:1(70x70pixels)</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">多端体验1：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.attr1}" placeholder="名称" id="attr1" name="attr1">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"></label>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg11"></div>
                <p style="color:#ccc;font-size:12px;">建议logo尺寸宽高:1:1</p>
			</div>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg12"></div>
                <p style="color:#ccc;font-size:12px;">建议二维码尺寸宽高:1:1</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">多端体验2：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.attr2}" placeholder="名称" id="attr2" name="attr2">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"></label>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg21"></div>
                <p style="color:#ccc;font-size:12px;">建议logo尺寸宽高:1:1</p>
			</div>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg22"></div>
                <p style="color:#ccc;font-size:12px;">建议二维码尺寸宽高:1:1</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">多端体验3：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.attr3}" placeholder="名称" id="attr3" name="attr3">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"></label>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg31"></div>
                <p style="color:#ccc;font-size:12px;">建议logo尺寸宽高:1:1</p>
			</div>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg32"></div>
                <p style="color:#ccc;font-size:12px;">建议二维码尺寸宽高:1:1</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">多端体验4：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.attr4}" placeholder="名称" id="attr1" name="attr4">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"></label>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg41"></div>
                <p style="color:#ccc;font-size:12px;">建议logo尺寸宽高:1:1</p>
			</div>
			<div class="formControls col-xs-4 col-sm-4">
                <div style="position:relative;" id="attrimg42"></div>
                <p style="color:#ccc;font-size:12px;">建议二维码尺寸宽高:1:1</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">公司客服固定电话：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.telephone}" placeholder="公司客服固定电话" id="telephone" name="telephone">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">客服在线咨询：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input style="width:150px;" type="number" class="input-text" value="{$data.qq}" placeholder="客服在线咨询" id="qq" name="qq">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">公司版权文字：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.record}" placeholder="公司版权文字" id="record" name="record">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">工信部备案：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.miit}" placeholder="工信部备案" id="miit" name="miit">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">公安备案：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$data.psr}" placeholder="公安备案" id="psr" name="psr">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">公司版权图标：</label>
			<div class="formControls col-xs-8 col-sm-9">
                <div style="position:relative;" id="drop_areao"></div>
                <p style="color:#ccc;font-size:12px;">建议尺寸宽高:2:1</p>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-3 col-sm-offset-2">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去--> 
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
 <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="/static/lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="/static/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="/static/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/static/js/upload.js"></script>
<script type="text/javascript" src="/static/js/webuploader.js"></script>
<script type="text/javascript">
var imgpz;
var imgpzo;
var attrimg11;
var attrimg12;
var attrimg21;
var attrimg22;
var attrimg31;
var attrimg32;
var attrimg41;
var attrimg42;
$(function(){
	$('#drop_area div img').attr('src','{$data.logo}');
	$('#drop_area div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#drop_areao div img').attr('src','{$data.ico}');
	$('#drop_areao div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg11 div img').attr('src','{$data.attrimg11}');
	$('#attrimg11 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg12 div img').attr('src','{$data.attrimg12}');
	$('#attrimg12 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg21 div img').attr('src','{$data.attrimg21}');
	$('#attrimg21 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg22 div img').attr('src','{$data.attrimg22}');
	$('#attrimg22 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg31 div img').attr('src','{$data.attrimg31}');
	$('#attrimg31 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg32 div img').attr('src','{$data.attrimg32}');
	$('#attrimg32 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg41 div img').attr('src','{$data.attrimg41}');
	$('#attrimg41 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	$('#attrimg42 div img').attr('src','{$data.attrimg42}');
	$('#attrimg42 div img').attr('onerror',"javascript:this.src='/static/img/upload.png'");
	if($("#drop_area div img").attr('src')=='/static/img/upload.png'){
		imgpz='';
	}else{
		imgpz= $("#drop_area div img").attr('src');
	}
	if($("#drop_areao div img").attr('src')=='/static/img/upload.png'){
		imgpzo='';
	}else{
		imgpzo= $("#drop_areao div img").attr('src');
	}
	if($("#attrimg11 div img").attr('src')=='/static/img/upload.png'){
		attrimg11='';
	}else{
		attrimg11= $("#attrimg11 div img").attr('src');
	}
	if($("#attrimg12 div img").attr('src')=='/static/img/upload.png'){
		attrimg12='';
	}else{
		attrimg12= $("#attrimg12 div img").attr('src');
	}
	if($("#attrimg21 div img").attr('src')=='/static/img/upload.png'){
		attrimg21='';
	}else{
		attrimg21= $("#attrimg21 div img").attr('src');
	}
	if($("#attrimg22 div img").attr('src')=='/static/img/upload.png'){
		attrimg22='';
	}else{
		attrimg22= $("#attrimg22 div img").attr('src');
	}
	if($("#attrimg31 div img").attr('src')=='/static/img/upload.png'){
		attrimg31='';
	}else{
		attrimg31= $("#attrimg31 div img").attr('src');
	}
	if($("#attrimg32 div img").attr('src')=='/static/img/upload.png'){
		attrimg32='';
	}else{
		attrimg32= $("#attrimg32 div img").attr('src');
	}
	if($("#attrimg41 div img").attr('src')=='/static/img/upload.png'){
		attrimg41='';
	}else{
		attrimg41= $("#attrimg41 div img").attr('src');
	}
	if($("#attrimg42 div img").attr('src')=='/static/img/upload.png'){
		attrimg42='';
	}else{
		attrimg42= $("#attrimg42 div img").attr('src');
	}
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#form-admin-add").validate({
		rules:{
			password:{
				required:true,
			}
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "{:url('aboutus')}",
				data:{logo:imgpz,ico:imgpzo,attrimg11:attrimg11,attrimg21:attrimg21,attrimg31:attrimg31,attrimg41:attrimg41,attrimg12:attrimg12,attrimg22:attrimg22,attrimg32:attrimg32,attrimg42:attrimg42},
				success: function(data){
					if(data.code==200){
						layer.msg('成功！',{icon:1,time:3000});
					}else{
						layer.msg('失败！',{icon:2,time:3000});
					}

				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
						layer.msg('失败！',{icon:2,time:3000});
				}
			});
		}
	});
});
var dragImgUpload = new DragImgUpload("#drop_area",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData = new FormData();
	        formData.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  imgpz=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUploado = new DragImgUpload("#drop_areao",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formDatao = new FormData();
	        formDatao.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formDatao,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  imgpzo=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUploado = new DragImgUpload("#attrimg11",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData11 = new FormData();
	        formData11.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData11,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg11=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg12",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData12 = new FormData();
	        formData12.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData12,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg12=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg21",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData21 = new FormData();
	        formData21.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData21,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg21=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg22",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData22 = new FormData();
	        formData22.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData22,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg22=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg31",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData31 = new FormData();
	        formData31.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData31,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg31=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg32",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData32 = new FormData();
	        formData32.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData32,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg32=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg41",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData41 = new FormData();
	        formData41.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData41,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg41=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
var dragImgUpload = new DragImgUpload("#attrimg42",{
    callback:function (files) {
        //回调函数，可以传递给后台等等
        if(files[0].size<3145728){
	        var file = files[0];
	        var formData42 = new FormData();
	        formData42.append("file",file);
	        $.ajax({
	              type: 'POST',
	              url: "{:url('qiniuupload')}",
	              data:formData42,
	              contentType: false, /*不可缺*/
	              processData: false, /*不可缺*/
	              success: function(response){
	                if(response.code==200){
	                  attrimg42=response.data
	                }else{
	                  alert(response.msg);
	                }
	              },
	              error: function(err){

	              }
	        })
        }else{
        	alert('出错');
        	location.replace(location.href);
        }
    }
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>